package com.crud.project.dao;

import com.crud.project.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IUserDao {

    List<User> findAll();

    List<User> findAllByUserName(String username);

    void insertUser(User user);

    void deleteUser(Long id);

    User findUserById(Long id);

    void updateUser(User user);
}
